import request from '@/utils/request'

// 查询注塑成型参数标准导入列表
export function listMoldingMstr(query) {
  return request({
    url: '/project/MoldingMstr/list',
    method: 'get',
    params: query,
  })
}

// 查询注塑成型参数标准导入详细
export function getMoldingMstr(moldId) {
  return request({
    url: '/project/MoldingMstr/' + moldId,
    method: 'get',
  })
}

// 新增注塑成型参数标准导入
export function addMoldingMstr(data) {
  return request({
    url: '/project/MoldingMstr',
    method: 'post',
    data: data,
  })
}
//上传
export function importMold(data) {
  return request({
    url: '/project/MoldingMstr/importMolding',
    method: 'post',
    data: data,
  })
}

// 修改注塑成型参数标准导入
export function updateMoldingMstr(data) {
  return request({
    url: '/project/MoldingMstr',
    method: 'put',
    data: data,
  })
}

// 删除注塑成型参数标准导入
export function delMoldingMstr(moldId) {
  return request({
    url: '/project/MoldingMstr/' + moldId,
    method: 'delete',
  })
}

export function exportInspection() {
  return request({
    url: '/project/MoldingMstr/exportInspection',
    method: 'post',
  })
}

// 导出注塑成型参数标准导入
export function exportMoldingMstr(query) {
  return request({
    url: '/project/MoldingMstr/export',
    method: 'get',
    params: query,
  })
}

// 批量审核
export function checkAllMold(moldIds) {
  return request({
    url: '/project/MoldingMstr/check/' + moldIds,
    method: 'put',
  })
}

export function getInfoByMjbh(data) {
  return request({
    url: '/project/MoldingMstr/getInfoByMjbh',
    method: 'get',
    params:data
  })
}
